package cur.nature.component.quartz.model;

import cur.nature.framework.mvc.base.BaseVO;
import cur.nature.framework.mvc.http.RequestObject;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
  * 任务调度 VO
  * 作者：Auto Generate By wujian
  * 生成日期：2023-10-11 21:38:22
  */
@Data
@Schema(description = "任务调度 模型", name = "Component_SchedulerVO")
public class Component_QuartzVO extends BaseVO {
    @Schema(description = "微服务代码")
    private String  schedName;

    @Schema(description = "调度组代码")
    private String  schedCode;
  
    @Schema(description = "任务组代码")
    private String  jobGroupCode;
  
    @Schema(description = "任务代码")
    private String  jobCode;
  
    @Schema(description = "任务名称")
    private String  jobName;
  
    @Schema(description = "执行类")
    private String  jobClass;
  
    @Schema(description = "cron表达式")
    private String  cronExpression;
  
    @Schema(description = "任务状态: ACQUIRED-运行中,PAUSED-暂停")
    private String  state;
  
    @Schema(description = "任务数据")
    private String  jobData;

    @Schema(description = "执行时间")
    private String schedTime;
  
    @Schema(description = "备注")
    private String  remark;


    @Data
    @Schema(description = "列表查询参数", name = "Component_SchedulerVO.list_Param")
    public static class list_Param extends RequestObject.PageRequest {
        @Schema(description = "关键字")
        private String keyword;
        @Schema(description = "idList")
        private List<Long> idList;
    }

    @Data
    public static class QuartzVO {
        private String schedCode;
        private String jobGroupCode;
        private String jobCode;
        private String jobClass;
        private String jobData;
        private String description;
        private String cronExpression;
        @Schema(description = "PAUSED-暂停,WAITING-等待中,ACQUIRED-恢复")
        private String triggerState;
    }
}

